package week01;

public class TicketMaker {
    private int ticketnum=1000;
    private static TicketMaker singleton=new TicketMaker();
    private TicketMaker(){};


    public static TicketMaker getInstance(){
        return singleton;
    }


    public int getTicketNum(){
        return ticketnum++;
    }
}